package com.superzqb.asus.Api;

import com.superzqb.asus.superzqbActivity.Bean.LoginBean;
import com.superzqb.asus.superzqbActivity.Bean.UserInfoBean;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by asus on 2017/1/24.
 */

public interface UsersApi {
    /*用户登录*/
   /* @FormUrlEncoded
    @POST("Home/Users/login")
    Call<LoginBean> getLogin(
            @Field("name") String name,
            @Field("pwd") String pwd
    );*/
    /*@GET("Home/Users/login")
    Call<LoginBean> getLogin(
            @Query("name") String name,
            @Query("pwd") String pwd
    );*/
    /*获取用户信息*/
   /* @FormUrlEncoded
    @POST("Home/Users/userInfo")
    Call<UserInfoBean> getUserInfo(
            @Field("uid") String uid
    );*/

    @GET(ApiParam.getLogin)
    Call<LoginBean> getLogin(
            @Query("name") String name,
            @Query("pwd") String pwd
    );
  /*   @GET(ApiParam.getLogin)
     Call<LoginBean> getLogin(
             @Query("name") String name,
             @Query("pwd") String pwd
     );*/
    //获取用户信息
    @GET(ApiParam.getUserInfo)
    Call<UserInfoBean> getUserInfo(
            @Query("uid") String uid
    );

    @GET(ApiParam.getRegister)
    Call<String> getRegister(
            @Query("name") String name,
            @Query("pwd") String pwd
    );
}
